#ifndef SetFan_H
#define SetFan_H

#define FANCOOL 0
#define FANHEAT 1

#define SPEED1 0
#define SPEED2 1
#define SPEED3 2
#define SPEED4 3
#define SPEED5 4
#define SPEED6 5
#define SPEED7 6

#define FANSTOP 0
#define FANAUTO 0
#define FANLEVEL1 1
#define FANLEVEL2 10
#define FANLEVEL3 30
#define FANLEVEL4 50
#define FANLEVEL5 70
#define FANLEVEL6 90
#define FANLEVEL7 100

#ifdef SetFan_Variable
#define SetFan_Extern

#else
#define SetFan_Extern extern
#endif

typedef struct
{
    U16 speed[2][7];      // 7档转速值
    U16 testSpeed[2][17]; // 能力测试转速值
} inFan_typeDef;


extern inFan_typeDef inFan;



SetFan_Extern U8 timer_AFanUpdSec; // 自动风刷新时间


void RoomFanJudge(void);
void RunFanJudge(void);
void SpeedJudge(void);
#endif
